which
{base}
return indexes of TRUE entries of a logical vector
mean
{base}
Get mean of a vector
head
{utils}
Show first 5 rows of a data frame
library
{base}
Load an R package
summary
{base}
Obtain summary statistics or detailed regression output
length
{base}
Returns number of elements in an object
subset
{base}
Return subsets of vectors, matrices or data frames which meet conditions.
median
{stats}
Get median of a vector
nobs
{gdata}
Compute the number of non-missing observations
min
{base}
Get minimum of a vector
lm
{base}
Fit a linear model
as.data.frame
{base}
Functions to check if an object is a data frame, or coerce it if possible.
read.csv
{utils}
Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters
seq
{base}
Create a sequence
log
{base}
log (default base = e)
max
{base}
Get maximum of a vector
rnorm
{base}
Generate random numbers from a normal distribution
filter
{dplyr}
Filter out rows of a data frame according to logical vector
ggsave
{ggplot2}
Saves the last ggplot or a specified ggplot object to a file
is.na
{base}
Check if a value is NA/elements of vector are NA
setwd
{base}
Set Working Directory
plot
{graphics}
Generic function from base R to produce a plot
dnorm
{stats}
Density distribution for the normal distribution
mutate
{dplyr}
Modify/create a column in a data frame
range
{base}
Return range of values
str
{utils}
Get the structure of an R object
var
{stats}
Calculate variance
par
{graphics}
Set parameters of the plotting device
c
{base}
Combine values/vectors into a vector
data.frame
{base}
Create a data.frame from vectors
sample
{base}
Takes a sample of the specified size
ordered
{dplyr}
Create an ordered factor
ifelse
{base}
Return a or b depending on the value of test
sd
{stats}
Get standard deviation of a vector
as.character
{base}
Coerce a vector to character
cut
{base}
Convert Numeric to Factor
read_excel
{readxl}
Read an Excel file
bar
{base}
Used for annotations, such as “expression(paste(”-“,bar(y)))”
names
{base}
Retrieve names of a list/vector
expression
{base}
Used in plots to add symbols to axes
The end!